package com.zhaoc.service.impl;

import com.zhaoc.dao.TakeTimeRepository;
import com.zhaoc.domain.TakeTime;
import com.zhaoc.service.ITakeTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>title:com.zhaoc.service.impl</p>
 * date:2018/8/5 0005
 * time:22:11
 * author:赵成
 * user:13566
 */
@Service
@Transactional
public class TakeTimeServiceimpl implements ITakeTimeService {

    //注入dao层对象
    @Autowired
    private TakeTimeRepository takeTimeRepository;

    //查询所有收派时间
    @Override
    public List<TakeTime> findAll() {
        return takeTimeRepository.findAll();
    }
}
